/*
 * Copyright (C) 2021  FunGuide, Inc. All Rights Reserved.
 */


package com.yxw.springcloud.service;

import com.yxw.springcloud.model.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * Simple to Introduction
 * className: AccountService
 *
 * @author yanxw
 * @version 2021/5/10 14:35
 */

@FeignClient(value = "seata-account-service")
public interface AccountService {

    @RequestMapping("/account/decrease")
    CommonResult decrease(@RequestParam("userId") Long userId, @RequestParam("money") BigDecimal money);

}
